﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="List.ascx.cs" Inherits="ZkSurvey.Web.VP.SurveyResult.List" %>
<tbwc:StyleSheetControl ID="SscList" runat="server" CssPath="list.css">
</tbwc:StyleSheetControl>
<tbwc:StyleSheetControl ID="SscEdit" runat="server" CssPath="VP/SurveyResult/List.css">
</tbwc:StyleSheetControl>
<tbwc:StyleSheetControl ID="SscModal" runat="server" CssPath="modaldialogs.css">
</tbwc:StyleSheetControl>
<ajaxToolKit:ToolkitScriptManager runat="Server" EnablePartialRendering="true" CombineScripts="false"
    ID="ScriptManager1">
    <Scripts>
        <asp:ScriptReference Path="~/js/jquery-1.4.2.js" />
    </Scripts>
</ajaxToolKit:ToolkitScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
        <div id="relatedoperation">
            选择问卷：
            <asp:DropDownList ID="ddlSurvey" AutoPostBack="true" runat="server" OnSelectedIndexChanged="ddlSurvey_SelectedIndexChanged">
            </asp:DropDownList>
            <asp:HyperLink ID="HlViewSummary" runat="server" Visible="false" Text="查看统计结果" Target="_blank"></asp:HyperLink>
        </div>
        <div class="dataListArea">
            <tbwc:GridViewEx ID="GvList" runat="server" SkinID="List" AllowPaging="true" PageSize="20"
                OnRowDataBound="GvList_RowDataBound" OnPageIndexChanging="GvList_PageIndexChanging"
                OnRowCommand="GvList_RowCommand">
                <EmptyDataTemplate>
                    没有用户参与
                </EmptyDataTemplate>
                <Columns>
                    <asp:TemplateField HeaderText="No.">
                        <ItemStyle CssClass="listNo" />
                        <ItemTemplate>
                            <asp:Literal ID="LtrNo" runat="server"></asp:Literal></ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="参与者姓名">
                        <ItemTemplate>
                            <%# Eval("User.Name") %>
                        </ItemTemplate>
                        <ItemStyle CssClass="name" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="参与者单位">
                        <ItemTemplate>
                            <%# Eval("User.Department") %>
                        </ItemTemplate>
                        <ItemStyle CssClass="depart" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="填写时间">
                        <ItemTemplate>
                            <%#Convert.ToDateTime(( Eval("JoinTime"))).ToString("yyyy-MM-dd HH:mm")%>
                        </ItemTemplate>
                        <ItemStyle CssClass="time" />
                    </asp:TemplateField>
                    <%--   <asp:TemplateField HeaderText="答题个数">
                        <ItemTemplate>
                        </ItemTemplate>
                        <ItemStyle CssClass="count" />
                    </asp:TemplateField>--%>
                    <asp:TemplateField HeaderText="状态">
                        <ItemTemplate>
                            <%# Eval("ValidStatus")%>
                        </ItemTemplate>
                        <ItemStyle CssClass="status" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="">
                        <ItemTemplate>
                            <asp:HyperLink ID="HlAudit" Target="_blank" runat="server" Text="查看审核"></asp:HyperLink>
                        </ItemTemplate>
                        <ItemStyle CssClass="ListOp" />
                    </asp:TemplateField>
                </Columns>
            </tbwc:GridViewEx>
        </div>
    </ContentTemplate>
    <Triggers>
    </Triggers>
</asp:UpdatePanel>
